package com.aiit.carinsurance2.service.impl;



import com.aiit.carinsurance2.dao.CarinsuranceDao;
import com.aiit.carinsurance2.dao.UserinsurancepayDao;
import com.aiit.carinsurance2.pojo.Carinsurance;
import com.aiit.carinsurance2.pojo.Userinsurancepay;
import com.aiit.carinsurance2.service.CarinsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hfy
 * @since 2022-05-06
 */
@Service
public class CarinsuranceServiceImpl implements CarinsuranceService {

    @Autowired
    private CarinsuranceDao carinsuranceDao;
    @Override
    public List<Carinsurance> query(Integer uid) {
        return carinsuranceDao.query(uid);
    }

    @Override
    public List<Carinsurance> querycarinsurancechoose1(Integer uid) {
        return carinsuranceDao.querycarinsurancechoose1(uid);
    }

    @Override
    public Userinsurancepay querycarinsurancechoose2(Integer uid) {
        return carinsuranceDao.querycarinsurancechoose2(uid);
    }
    @Override
    public int addinsurance(Carinsurance carinsurance) {
        return carinsuranceDao.addinsurance(carinsurance);
    }


}
